package File;

import java.io.*;
import java.nio.charset.StandardCharsets;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Ap0stoL2
 * Date: 2023-08-06
 * Time: 22:01
 */
public class test2 {
    public static void main(String[] args) throws IOException {
         try(OutputStream outputStream = new FileOutputStream("d:/test.txt")){
             String s="i love java, i am yzy ";

             byte[] b = s.getBytes();

             outputStream.write(b);

         }
    }
}
